package com.yonyou.pmclouds.team.mapper;

import com.yonyou.pmclouds.basecom.dao.BaseMapper;
import com.yonyou.pmclouds.team.entity.TeamEnterpriseRefVO;
import com.yonyou.pmclouds.team.entity.TeamEnterpriseVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TeamEnterpriseMapper extends BaseMapper<TeamEnterpriseVO> {
    TeamEnterpriseVO[] queryByProject(String projectid);

    TeamEnterpriseRefVO[] queryConstructionUnitInProject(String projectid);
    TeamEnterpriseRefVO[] querySupervisionUnitInProject(String projectid);

    TeamEnterpriseRefVO[] queryConstructionUnitInProjects(@Param("projectids") String[] projectids);
    TeamEnterpriseRefVO[] querySupervisionUnitInProjects(@Param("projectids") String[] projectids);

    int countProjectEnterprise(String projectid);

    TeamEnterpriseVO[] queryByIds(String[] ids);

    TeamEnterpriseVO[] queryByProjects(@Param("pkProjects") String [] pkProjects);

    TeamEnterpriseVO[] queryByPkEnts(@Param("pkEnts") String [] pkEnts);

    List<TeamEnterpriseVO> queryConstructEnterByProject(@Param("pkProject") String pkProject, @Param("pkTenant") String pkTenant);

    List<TeamEnterpriseVO> queryByProjectAndTenant(@Param("pkProject") String pkProject, @Param("pkTenant") String pkTenant);

    TeamEnterpriseVO queryByProAndEnt(@Param("pkProject") String pkProject, @Param("pkEnt") String pkEnt);
}
